package cn.imu.appdevexperiment2022.two;

import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import cn.imu.appdevexperiment2022.R;
import cn.imu.appdevexperiment2022.start.ActivityCollector;
import cn.imu.appdevexperiment2022.start.BaseActivity;

public class ThirdActivity extends BaseActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_third);
        // 使程序退出
        Button button_third = (Button) findViewById(R.id.button_third);
        button_third.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                ActivityCollector.finishAll();
            }
        });
    }
}